/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package doan.quanlycanbo.portlet.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.service.ServiceContext;

import doan.quanlycanbo.portlet.model.chucvu;

import java.util.List;

/**
 * The persistence utility for the chucvu service. This utility wraps {@link chucvuPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
 * </p>
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Nguyen Tuan Vinh
 * @see chucvuPersistence
 * @see chucvuPersistenceImpl
 * @generated
 */
public class chucvuUtil {
	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
	 */
	public static void clearCache() {
		getPersistence().clearCache();
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
	 */
	public static void clearCache(chucvu chucvu) {
		getPersistence().clearCache(chucvu);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
	 */
	public long countWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
	 */
	public static List<chucvu> findWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
	 */
	public static List<chucvu> findWithDynamicQuery(DynamicQuery dynamicQuery,
		int start, int end) throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
	 */
	public static List<chucvu> findWithDynamicQuery(DynamicQuery dynamicQuery,
		int start, int end, OrderByComparator orderByComparator)
		throws SystemException {
		return getPersistence()
				   .findWithDynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
	 */
	public static chucvu remove(chucvu chucvu) throws SystemException {
		return getPersistence().remove(chucvu);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
	 */
	public static chucvu update(chucvu chucvu, boolean merge)
		throws SystemException {
		return getPersistence().update(chucvu, merge);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
	 */
	public static chucvu update(chucvu chucvu, boolean merge,
		ServiceContext serviceContext) throws SystemException {
		return getPersistence().update(chucvu, merge, serviceContext);
	}

	/**
	* Caches the chucvu in the entity cache if it is enabled.
	*
	* @param chucvu the chucvu to cache
	*/
	public static void cacheResult(doan.quanlycanbo.portlet.model.chucvu chucvu) {
		getPersistence().cacheResult(chucvu);
	}

	/**
	* Caches the chucvus in the entity cache if it is enabled.
	*
	* @param chucvus the chucvus to cache
	*/
	public static void cacheResult(
		java.util.List<doan.quanlycanbo.portlet.model.chucvu> chucvus) {
		getPersistence().cacheResult(chucvus);
	}

	/**
	* Creates a new chucvu with the primary key. Does not add the chucvu to the database.
	*
	* @param machucvu the primary key for the new chucvu
	* @return the new chucvu
	*/
	public static doan.quanlycanbo.portlet.model.chucvu create(long machucvu) {
		return getPersistence().create(machucvu);
	}

	/**
	* Removes the chucvu with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param machucvu the primary key of the chucvu to remove
	* @return the chucvu that was removed
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a chucvu with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu remove(long machucvu)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence().remove(machucvu);
	}

	public static doan.quanlycanbo.portlet.model.chucvu updateImpl(
		doan.quanlycanbo.portlet.model.chucvu chucvu, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().updateImpl(chucvu, merge);
	}

	/**
	* Finds the chucvu with the primary key or throws a {@link doan.quanlycanbo.portlet.NoSuchchucvuException} if it could not be found.
	*
	* @param machucvu the primary key of the chucvu to find
	* @return the chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a chucvu with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu findByPrimaryKey(
		long machucvu)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence().findByPrimaryKey(machucvu);
	}

	/**
	* Finds the chucvu with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param machucvu the primary key of the chucvu to find
	* @return the chucvu, or <code>null</code> if a chucvu with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu fetchByPrimaryKey(
		long machucvu)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPrimaryKey(machucvu);
	}

	/**
	* Finds the chucvu where machucvu = &#63; and groupId = &#63; or throws a {@link doan.quanlycanbo.portlet.NoSuchchucvuException} if it could not be found.
	*
	* @param machucvu the machucvu to search with
	* @param groupId the group id to search with
	* @return the matching chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a matching chucvu could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu findByF_G(
		long machucvu, long groupId)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence().findByF_G(machucvu, groupId);
	}

	/**
	* Finds the chucvu where machucvu = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
	*
	* @param machucvu the machucvu to search with
	* @param groupId the group id to search with
	* @return the matching chucvu, or <code>null</code> if a matching chucvu could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu fetchByF_G(
		long machucvu, long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByF_G(machucvu, groupId);
	}

	/**
	* Finds the chucvu where machucvu = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
	*
	* @param machucvu the machucvu to search with
	* @param groupId the group id to search with
	* @return the matching chucvu, or <code>null</code> if a matching chucvu could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu fetchByF_G(
		long machucvu, long groupId, boolean retrieveFromCache)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByF_G(machucvu, groupId, retrieveFromCache);
	}

	/**
	* Finds all the chucvus where groupId = &#63;.
	*
	* @param groupId the group id to search with
	* @return the matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findByG(
		long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByG(groupId);
	}

	/**
	* Finds a range of all the chucvus where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param start the lower bound of the range of chucvus to return
	* @param end the upper bound of the range of chucvus to return (not inclusive)
	* @return the range of matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findByG(
		long groupId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByG(groupId, start, end);
	}

	/**
	* Finds an ordered range of all the chucvus where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param start the lower bound of the range of chucvus to return
	* @param end the upper bound of the range of chucvus to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findByG(
		long groupId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByG(groupId, start, end, orderByComparator);
	}

	/**
	* Finds the first chucvu in the ordered set where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a matching chucvu could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu findByG_First(
		long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence().findByG_First(groupId, orderByComparator);
	}

	/**
	* Finds the last chucvu in the ordered set where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a matching chucvu could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu findByG_Last(
		long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence().findByG_Last(groupId, orderByComparator);
	}

	/**
	* Finds the chucvus before and after the current chucvu in the ordered set where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param machucvu the primary key of the current chucvu
	* @param groupId the group id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a chucvu with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu[] findByG_PrevAndNext(
		long machucvu, long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence()
				   .findByG_PrevAndNext(machucvu, groupId, orderByComparator);
	}

	/**
	* Finds all the chucvus where groupId = &#63; and languageId = &#63;.
	*
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @return the matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findByG_L(
		long groupId, java.lang.String languageId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByG_L(groupId, languageId);
	}

	/**
	* Finds a range of all the chucvus where groupId = &#63; and languageId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @param start the lower bound of the range of chucvus to return
	* @param end the upper bound of the range of chucvus to return (not inclusive)
	* @return the range of matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findByG_L(
		long groupId, java.lang.String languageId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByG_L(groupId, languageId, start, end);
	}

	/**
	* Finds an ordered range of all the chucvus where groupId = &#63; and languageId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @param start the lower bound of the range of chucvus to return
	* @param end the upper bound of the range of chucvus to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findByG_L(
		long groupId, java.lang.String languageId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByG_L(groupId, languageId, start, end, orderByComparator);
	}

	/**
	* Finds the first chucvu in the ordered set where groupId = &#63; and languageId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a matching chucvu could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu findByG_L_First(
		long groupId, java.lang.String languageId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence()
				   .findByG_L_First(groupId, languageId, orderByComparator);
	}

	/**
	* Finds the last chucvu in the ordered set where groupId = &#63; and languageId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a matching chucvu could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu findByG_L_Last(
		long groupId, java.lang.String languageId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence()
				   .findByG_L_Last(groupId, languageId, orderByComparator);
	}

	/**
	* Finds the chucvus before and after the current chucvu in the ordered set where groupId = &#63; and languageId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param machucvu the primary key of the current chucvu
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next chucvu
	* @throws doan.quanlycanbo.portlet.NoSuchchucvuException if a chucvu with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static doan.quanlycanbo.portlet.model.chucvu[] findByG_L_PrevAndNext(
		long machucvu, long groupId, java.lang.String languageId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		return getPersistence()
				   .findByG_L_PrevAndNext(machucvu, groupId, languageId,
			orderByComparator);
	}

	/**
	* Finds all the chucvus.
	*
	* @return the chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll();
	}

	/**
	* Finds a range of all the chucvus.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of chucvus to return
	* @param end the upper bound of the range of chucvus to return (not inclusive)
	* @return the range of chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end);
	}

	/**
	* Finds an ordered range of all the chucvus.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of chucvus to return
	* @param end the upper bound of the range of chucvus to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<doan.quanlycanbo.portlet.model.chucvu> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end, orderByComparator);
	}

	/**
	* Removes the chucvu where machucvu = &#63; and groupId = &#63; from the database.
	*
	* @param machucvu the machucvu to search with
	* @param groupId the group id to search with
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByF_G(long machucvu, long groupId)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchchucvuException {
		getPersistence().removeByF_G(machucvu, groupId);
	}

	/**
	* Removes all the chucvus where groupId = &#63; from the database.
	*
	* @param groupId the group id to search with
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByG(long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByG(groupId);
	}

	/**
	* Removes all the chucvus where groupId = &#63; and languageId = &#63; from the database.
	*
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByG_L(long groupId, java.lang.String languageId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByG_L(groupId, languageId);
	}

	/**
	* Removes all the chucvus from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public static void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeAll();
	}

	/**
	* Counts all the chucvus where machucvu = &#63; and groupId = &#63;.
	*
	* @param machucvu the machucvu to search with
	* @param groupId the group id to search with
	* @return the number of matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static int countByF_G(long machucvu, long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByF_G(machucvu, groupId);
	}

	/**
	* Counts all the chucvus where groupId = &#63;.
	*
	* @param groupId the group id to search with
	* @return the number of matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static int countByG(long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByG(groupId);
	}

	/**
	* Counts all the chucvus where groupId = &#63; and languageId = &#63;.
	*
	* @param groupId the group id to search with
	* @param languageId the language id to search with
	* @return the number of matching chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static int countByG_L(long groupId, java.lang.String languageId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByG_L(groupId, languageId);
	}

	/**
	* Counts all the chucvus.
	*
	* @return the number of chucvus
	* @throws SystemException if a system exception occurred
	*/
	public static int countAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countAll();
	}

	public static chucvuPersistence getPersistence() {
		if (_persistence == null) {
			_persistence = (chucvuPersistence)PortletBeanLocatorUtil.locate(doan.quanlycanbo.portlet.service.ClpSerializer.SERVLET_CONTEXT_NAME,
					chucvuPersistence.class.getName());
		}

		return _persistence;
	}

	public void setPersistence(chucvuPersistence persistence) {
		_persistence = persistence;
	}

	private static chucvuPersistence _persistence;
}